﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EntityModel
{
    [Table("B03")]
    public class EM_Department:EntityBase
    {
        [Column("B200")]
        /// <summary>
        /// 系部人数
        /// </summary>
        [Required]
        public int DepartmentNumber { get; set; }

        [Column("B201")]
        /// <summary>
        /// 系部名称
        /// </summary>
        [Required]
        [StringLength(50)]
        public string ?DepartmentName { get; set; }

        [Column("B202")]
        /// <summary>
        /// 系部主任
        /// </summary>
        [Required]
        [StringLength(50)]
        public string ?DepartmentHead { get; set; }

        [Column("B203")]
        /// <summary>
        /// 系部办公室
        /// </summary>
        [Required]
        [StringLength(50)]
        public string ?DepartmentOffice { get; set; }

        [Column("B204")]
        /// <summary>
        ///系部成立时间
        /// </summary>
        public DateTime DepartmentTime { get; set; }

        public static object ToList<T>()
        {
            throw new NotImplementedException();
        }
    }
}
